package com.lpc.android.abc.main.di.module;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lpc.android.abc.base.di.scope.ActivityScope;
import com.lpc.android.abc.base.di.scope.AppScope;
import com.lpc.android.abc.main.mvp.MainModel;
import com.lpc.android.abc.main.mvp.MainPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lipc0113 on 2017/7/20.
 */

@ActivityScope
@Module
public class MainModule {

    @ActivityScope
    @Provides
    public MainPresenter provideMainPresenter(MainModel mainModel){

        return new MainPresenter(mainModel);
    }

    @ActivityScope
    @Provides
    public MainModel provideMainModel(){

        return new MainModel();
    }
}
